package com.team11.server.controller.teacher;

import com.team11.server.pojo.dto.RespPageBean;
import com.team11.server.pojo.dto.vo.ProjectAttendanceVo;
import com.team11.server.service.IAInformationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author pjc
 * @since 2021-07-06
 */
@CrossOrigin
@RestController
@RequestMapping("teacher")
@Api(tags = "教师接口")
public class TeacherAInformationController {
    @Resource
    private IAInformationService iaInformationService;

    @ApiOperation("考勤管理：获取项目考勤记录表")
    @PostMapping("/getProjectAttendance")
    public RespPageBean getProjectAttendance(@RequestParam(defaultValue = "1") Integer currentPage,
                                             @RequestParam(defaultValue = "10") Integer size,
                                             ProjectAttendanceVo projectAttendanceVo){
        return iaInformationService.getProjectAttendance(currentPage,size,projectAttendanceVo);
    }
}
